﻿namespace LB.Server.DAL.DomainEntitites
{
    /// <summary>
    /// User
    /// </summary>
    public class User
    {
        /// <summary>
        /// User Id
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// system User Name
        /// </summary>
        public string Login { get; set; }

        /// <summary>
        /// SHA256 hash of user password
        /// </summary>
        public string PasswordHash { get; private set; }


        public User(string login, string passwordHash)
        {
            Login = login;
            PasswordHash = passwordHash;
        }

        public User() {}
    }
}